PROJECT_1 := $(shell git remote -v)
PROJECT_2 := $(filter %.git, $(PROJECT_1))
PROJECT_3 := $(firstword $(PROJECT_2))
PROJECT_4 := $(shell echo ${PROJECT_3} | sed 's/.*\///g')
PROJECT := $(subst .git,,$(PROJECT_4))


HOME := /home/$(PROJECT)



.PHONY: config install


install: $(HOME)  config


config: 
	cd config; make 


$(HOME): 
	adduser $(PROJECT)
	passwd $(PROJECT)
	chmod 755 $@

